#ifndef _DISPLAY_BOARD_
#define _DISPLAY_BOARD_

#include "aerial\Object\Object.h"
#include "raknet\RakString.h"

#include <iostream>

using namespace RakNet;
using namespace std;

namespace air {
	struct Event;
	class SceneManager;

	class DisplayBoard: public IGuiObject {
	public:
		DisplayBoard(hgeResourceManager* _hgeResMan, float w, float h, Event* _evnt = NULL);
		~DisplayBoard() {}
		virtual void Render();

		virtual void Update(float dt) {	isPositionUpdate = true; }

		bool addToGui(SceneManager* sceneMan, IGuiObject* _anchor);

		void MouseOver(bool bOver)
		{
			if(bOver) {
				frame = frame_over;
				chosen = true;
			}
			else {
				frame = frame_norm;
				chosen = false;
			}
		}

		bool MouseLButton(bool bDown)
		{
			if (!bDown) return true;
			else return false;
		}

		void EnableBoard(int id);
		void DisableBoard();
		bool chosen;
		bool status;
		int infoId;
	private:
		hgeFont* fnt;
		hgeSprite *frame_norm, *frame_over, *frame, *tick;

		Event* evnt;
		
	};

}
#endif